package cn.rkylin.oms.item.adapter;

import cn.rkylin.apollo.common.util.BeanUtils;

public class ItemAdapterFactory {

    public static ItemAdapter getAdapter(String shopType) {
        ItemAdapter itemAdapter = null;
        switch (shopType) {
            case "淘宝分销":
                itemAdapter = BeanUtils.getBean("fenXiaoItemAdapter");
                break;
            case "京东":
                itemAdapter = BeanUtils.getBean("jdItemAdapter");
                break;
            case "苏宁":
                itemAdapter = BeanUtils.getBean("suningItemAdapter");
                break;
            case "商城":
                itemAdapter = BeanUtils.getBean("yiyouyayinItemAdapter");
                break;
            default:
                break;
        }
        return itemAdapter;
    }

}
